from os import write

f=open('e:/Test/test.txt','w')
f=write("1111\n")
f.close()

# f=open('e:/Test/test.txt','a')
# f.write("2222\n")
# f.close()